package sg.edu.nus.iss.vmcs.termination.template;

import sg.edu.nus.iss.vmcs.system.DispenseController;
import sg.edu.nus.iss.vmcs.system.TransactionController;
/**
 * Author : Priyanka
 * Parent class for the differnt Termination scenarios 
 * 
 */

public abstract class Termination {

	protected DispenseController dc=null;
	
	public void terminate(DispenseController dc)
	{
		this.dc=dc;
		AllowSelection(false);
		CallUseCase();
		
	}

	abstract protected void CallUseCase();


	private void AllowSelection(boolean b) {
			dc.allowSelection(b);
		
	}
	
}
